package com.example.iotest.bio;


import java.io.*;

public class StringStreamTest {

    public static void main(String[] args) throws IOException {
        String fileName = "D:\\Resources\\GitProjects\\io-test\\io-test" +
                "\\io-test\\src\\main\\resources\\files\\1.txt";
        File file = new File(fileName);
        FileReader fileReader = new FileReader(file);
        char[] buffer = new char[8];
        int length;
        while ((length = fileReader.read(buffer)) != -1) {
            System.out.println(buffer);
        }
//        new InputStreamReader(fileReader);
    }
}
